package org.maggioni.springsandbox.model.draw.shapes;

import org.maggioni.springsandbox.model.decorators.LifeCycleAware;
import org.maggioni.springsandbox.model.draw.Point;

public class Circle extends Shape implements LifeCycleAware {
	
	private Point center;
	private Double radius;
	
	public Point getCenter() {
		return center;
	}
	public void setCenter(Point center) {
		this.center = center;
	}
	public Double getRadius() {
		return radius;
	}
	public void setRadius(Double radius) {
		this.radius = radius;
	}
	
	@Override
	public void init() {
		System.out.println(this.getClass().getName()+" initialized.");
	}
	@Override
	public void dispose() {
		System.out.println(this.getClass().getName()+" disposed.");
	}
	
	@Override
	public String toString() {
		return "Circle [center=" + center + ", radius=" + radius + ", getId()="
				+ getId() + ", getName()=" + getName() + "]";
	}

}
